package org.jeecg.tender.constant;


/**
 *  /**公告类型：1-采购公告、2-中选结果公示、3-直接采购公告
 *  */
public enum PublishTypeEnum {
    //基础压制（骨干网压制）
    PROCUREMENT("1","采购公告"),
    SELECTION_RESULTS("2","中选结果公示"),
    ONE_SOURCE_PROCUREMENT("3","直接采购公告");

    private String name;
    private String code;

    public String getName() {
        return name;
    }
    public String getCode() {
        return code;
    }

    PublishTypeEnum(String code, String name) {
        this.name = name;
        this.code = code;
    }

    public static String getNameByCode(String code) {
        for (PublishTypeEnum e : PublishTypeEnum.values()) {
            if (e.code.equals(code)) {
                return e.name;
            }
        }
        return null;
    }
}
